import React, { Component } from 'react';
import {Route} from 'react-router-dom';

import BottomBar from '@/components/BottomBar';

import Index from '@/pages/Index';
import Catalog from '@/pages/Catalog';
import ShopCar from '@/pages/ShopCar';
import Mine from '@/pages/Mine';
import EB from '@/pages/EB';

class App extends Component {
  render() {
    return (
      <div>
        <Route path="/" exact component={Index}></Route>
        <Route path="/catalog" exact component={Catalog}></Route>
        <Route path="/shopcar" exact component={ShopCar}></Route>
        <Route path="/mine" exact component={Mine}></Route>
        <Route path="/eb" exact component={EB}></Route>
        <BottomBar></BottomBar>
      </div>
    );
  }
}

export default App;
